package com.ericsson.enap.modules.backup.job;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.job.ManualQuartzJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.backup.task.ImsLogBackupTask;
import com.ericsson.enap.modules.kpi.task.ims.ParamCompareValueTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @description: 湖北登录日志、话单日志备份
 * @author: chenhongbo
 * @create: 2021-10-19 09:36
 */

@Component
public class ImsLogBackupJob implements MainJob {

    @Autowired
    QuartzTableManager quartzTableManager;

    String jobName="imsLogBackupJob";

    @Autowired
    ImsLogBackupTask imsLogBackupTask;

    @Override
    public void doTask() {
        imsLogBackupTask.execute();
        //quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0 1 * * ?",imsLogBackupTask);
    }
}
